package com.shop.product.mapper;

import com.shop.product.domain.ShopCar;
import com.shop.product.domain.ShopCarAndDetails;
import com.shop.product.domain.ShopCarDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：作者姓名
 * @Package：com.shop.product.mapper
 * @Project：RuoYi-Cloudnew
 * @name：ItemMapper
 * @Date：2024/6/6 20:33
 */
@Mapper
public interface ItemMapper {
    List<ShopCar> ShopCarList(Long userId);

    void ShopCarAdd(ShopCarAndDetails shopCarAndDetails);

    List<ShopCarDetails> ShopCarDetailsList(@Param("skuId") Long skuId, @Param("carId") Long carId);

    void ShopCarDetailsAdd(ShopCarAndDetails shopCarAndDetails);

    void updateShopCarDetailsCount(ShopCarAndDetails shopCarAndDetails);

    void ShopCarDetailsDel(Long detailsId);

    void ShopCarDetailsUpdate(@Param("detailsId") Long detailsId, @Param("detailsCount") Long detailsCount);
}
